
import os
import sys

root=os.getcwd()
if root not in sys.path:
    sys.path.append(root)

# jobs_dir = os.path.join(os.getcwd(),'workspace','jobs')
# os.environ['ONSHS_WORKSPACE_DIR'] = jobs_dir
# import scripts
# script_path_info_collect = os.path.join(root, "scripts", "info_collect")
# sys.path.append(script_path_info_collect)
# try:
#     script_info_collect = __import__("info_collect")
#     script_info_collect.TestCase().execute(False)
# except:
#     print("Could not find info_collect")
#     sys.exit(255)

script_path_hwmon = os.path.join(root, "scripts")
sys.path.append(script_path_hwmon)
try:
    script_hwmon = __import__("hwmon")
    script_hwmon.HwMon().execute()
except:
    print("Could not find hwmon")
    sys.exit(255)


